package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.*;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_CompoundUniqueGroup({
        @_DDL_CompoundUnique(name = "womer_id_ord_id", columns = {"mer_id", "mer_ord_id"})
})
@_DDL_Table(name = "qb_withdraw_order", simpleName = "", engine = MysqlDriver.InnoDB, comment = "内部户提现订单")
public class _DDL_QbWithdrawOrder {

    @_DDL_Primary()
    @_DDL_Column(name = "wo_id", type = SqlType.CHAR, size = 16, nullable = false, comment = "订单ID")
    private String id;

    @_DDL_Column(name = "wo_amt", type = SqlType.INT, nullable = false, comment = "金额，分")
    private Integer amt;

    @_DDL_Column(name = "wo_state", type = SqlType.INT, nullable = false, comment = "状态，0：未处理、1：成功、2：失败、3：关闭、4：进行中")
    private Integer state;

    @_DDL_Column(name = "qb_id", type = SqlType.CHAR, size = 18, nullable = false, comment = "钱包ID")
    private String qbId;

    @_DDL_Column(name = "mer_id", type = SqlType.VARCHAR, size = 30, nullable = false, comment = "商户号")
    private String merId;

    @_DDL_Column(name = "mer_ord_id", type = SqlType.VARCHAR, size = 30, nullable = false, comment = "商户订单号")
    private String merOrdId;

    @_DDL_Column(name = "wo_outer_id", type = SqlType.VARCHAR, size = 50, comment = "第三方订单号")
    private String outerId;

    @_DDL_Column(name = "wo_cr_date", type = SqlType.DATETIME, comment = "创建时间")
    private java.time.LocalDateTime crDate;

    @_DDL_Column(name = "wo_pay_date", type = SqlType.DATETIME, comment = "成功时间")
    private java.time.LocalDateTime payDate;

    @_DDL_Column(name = "error_code", type = SqlType.VARCHAR, size = 20, comment = "错误码")
    private String errorCode;

    @_DDL_Column(name = "error_msg", type = SqlType.VARCHAR, size = 200, comment = "错误内容")
    private String errorMsg;

    @_DDL_Column(name = "third_param", type = SqlType.VARCHAR, size = 300, comment = "第三方参数")
    private String thirdParam;

    @_DDL_Column(name = "wo_type", type = SqlType.VARCHAR, size = 10, comment = "订单类型")
    private String type;

}
